/*
* @name Time Picker by AXXIS Internet Solutions
* Created By Chris Michaelides
* http://www.axxis.gr
* @copyright  Copyright (C) 2011  Axxis.gr / All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
// JavaScript Document

// timepicker function
// it will put the clicked value to the appropriate inputfield. Depends on the name of the field. Replace element IDs with your own.
function timepicker(inputfield,counter) {
  if (inputfield==1) {
    document.getElementById('starttime').value = document.getElementById('hour'+inputfield+'_'+counter).value;
  } else {
    document.getElementById('endtime').value = document.getElementById('hour'+inputfield+'_'+counter).value;
  }
  document.getElementById('timepicker_table'+inputfield).style.display = 'none';
}

// function to reveal the hidden timepicker drop-down
function selectTime(inputfield) {
  document.getElementById('timepicker_table'+inputfield).style.display = 'block';
}
